package com.heima.search.service;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.WmNewsDownOrUpMsgDTO;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.search.pojo.ArticleDoc;

import java.util.List;

public interface ApUserSearchService {

    void importArticle(List<ArticleDto> articleDtoList);

    List<ArticleDoc> search(UserSearchDto dto);

    /**
    * 当收到article创建的消息以后的回调
    * */
    void onArticleCreate(long parseLong);

    /**
     *  当收到wm_news上下架消息以后的回调
     * */
    void onArticleDownOrUp(WmNewsDownOrUpMsgDTO wmNewsDownOrUpMsgDTO);
}
